import {post} from "./axios";

export const user = {
    regist(val) {
        return post({
            url: '/api/user/regist',
            params: val
        })
    }
    ,
    login(val) {
        return post({
            url: '/api/user/login',
            params: val
        })
    }
    ,
    userInfo(val) {
        return post({
            url: '/api/user/baseInfo',
            params: val
        })
    }
    ,
    userEdit(val) {
        return post({
            url: '/api/user/editBaseInfo',
            params: val
        })
    },

    completeInfo(val) {
        return post({
            url: '/api/user/completeBaseInfo',
            params: val
        })
    },
    getUserAddressList(val) {
        return post({
            url: '/api/user/addressList',
            params: val
        })
    },
    addUserAddress(val) {
        return post({
            url: '/api/user/addAddress',
            params: val
        })
    },
    getUserCart(val) {
        return post({
            url: '/api/user/cart',
            params: val
        })
    },
    getUserRecommend(val) {
        return post({
            url: '/api/user/recommend',
            params: val
        })
    }
}
